package com.loan.system.service;

import com.loan.common.core.domain.PageQuery;
import com.loan.common.core.page.TableDataInfo;
import com.loan.system.domain.SmsTemplateEntity;

import java.util.Map;

/**
 * @author shiguang on 2022/9/15 15:40
 */
public interface SmsTemplateService {

    TableDataInfo<SmsTemplateEntity> selectPageList(SmsTemplateEntity entity, PageQuery pageQuery);

    SmsTemplateEntity selectSmsTemplateById(Long id);

    int insertSmsTemplate(SmsTemplateEntity entity);

    int updateSmsTemplate(SmsTemplateEntity entity);

    int deleteSmsTemplateById(Long id);

    int updateSmsTemplateStatus(SmsTemplateEntity entity);

    boolean sendSms(String mobile, String type, Map<String, Object> params);
}
